package com.mzj.saas.mservice.department.repository;

import com.mzj.saas.mservice.department.entity.CustomFieldManagement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;


public interface CustomFieldManagementRepository extends PagingAndSortingRepository<CustomFieldManagement, Long>, JpaSpecificationExecutor<CustomFieldManagement>, JpaRepository<CustomFieldManagement,Long> {
CustomFieldManagement findByNameAndOrgId(String name,Long orgId);
CustomFieldManagement findByFieldNameAndOrgId(String fieldName,Long orgId);
List<CustomFieldManagement> findByOrgId(Long orgId);
}
